package com.miniapp.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.miniapp.entity.MiniProductPriceEntity;
import com.miniapp.mapper.MiniProductPriceMapper;
import com.miniapp.service.MiniProductPriceService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("miniProducpriceService")
public class MiniProductPriceServiceImpl  extends BaseServiceImpl<MiniProductPriceMapper,MiniProductPriceEntity>  implements MiniProductPriceService {



    @Override
    public List<MiniProductPriceEntity> findByProductId(Long id) {

        return baseMapper.selectList(new QueryWrapper<MiniProductPriceEntity>
                (new MiniProductPriceEntity(),new String[]{"price,day,product_id,type,id"})
                .eq("product_id",id));
    }


}
